
function myNew() {
  let obj = {};

  let cons = [].shift.call(arguments);

  obj.__proto__ = cons.prototype;

  const result = cons.apply(obj, arguments);

  return result

}
myNew(Object)
